<!doctype html>
<html lang="zh-CN">
<head>
    <link rel="stylesheet" href="css/awesome-bootstrap-checkbox.css"/>
    <meta charset="utf-8">
    <link rel="shortcut icon" href="/static/bg_img/favicon.ico">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.29/favicon.ico">
    <link rel="canonical" href="https://getbootstrap.com/docs/3.4/examples/jumbotron/">
    <title>收藏列表</title>
    <!-- Bootstrap core CSS -->
    <link href="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.29/dist/css/bootstrap.min.css"
          rel="stylesheet">

    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <link href="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.29/assets/css/ie10-viewport-bug-workaround.css"
          rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.29/examples/jumbotron/jumbotron.css"
          rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.29/assets/js/ie-emulation-modes-warning.js"></script>


    <script type="text/javascript">
        //页面加载的时候,所有的复选框都是未选中的状态
        function checkOrCancelAll() {
            //1.获取checkbo的元素对象
            var chElt = document.getElementById("chElt");
            //2.获取选中状态
            var checkedElt = chElt.checked;
            console.log(checkedElt)
            //3.若checked=true,将所有的复选框选中,checked=false,将所有的复选框取消
            var allCheck = document.getElementsByName("list");
            //4.循环遍历取出每一个复选框中的元素
            //var mySpan=document.getElementById("mySpan");
            if (checkedElt) {
                //全选
                for (var i = 0; i < allCheck.length; i++) {
                    //设置复选框的选中状态
                    allCheck[i].checked = true;
                }
                //mySpan.innerHTML="取消全选";
            } else {
                //取消全选
                for (var i = 0; i < allCheck.length; i++) {
                    allCheck[i].checked = false;
                }
                //mySpan.innerHTML="全选";
            }
        }
    </script>

</head>

<body>

<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
                    aria-expanded="false"
                    aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">U享书城</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <form class="navbar-form navbar-right">
                <div class="form-group">
                    <input type="text" placeholder="username" class="form-control">
                </div>
                <div class="form-group">
                    <input type="password" placeholder="Password" class="form-control">
                </div>
                <button type="submit" class="btn btn-success">Sign in</button>
            </form>
        </div>

    </div>
</nav>


<div class="container">
    <label>
        <input type="checkbox" id="chElt" onclick="checkOrCancelAll();"/><span id="mySpan">全选</span><br/>
    </label>

    <div class="row" style="height: 280px">

        <div class="col-md-4" style="background-color: #dedef8;">
            <input type="checkbox" name="list" class="cb" value="">
            <img src="https://img-tailor.11222.cn/bcv/big/1103098312997.jpg" class="cover"/>
        </div>

        <div class="row">

            <div class="col-md-7" style="background-color: #dedef8;box-shadow:
										inset 1px 0px 0px #444, inset 0px 0px 0px #444;height: 280px">
                <br>
                <p class="title">在仙尊梦里睡懒觉</p>
                <br><br><br>
                <p><a href="/authormain?aid=1430301">青衫烟雨</a></p><br><br>
                <p>
                    简介：连五灵根的废物都收，第一仙门已堕落至此？阮玉，你就算进了第一仙门，一辈子也只能当个打杂的。——被认为只能做一辈子杂役弟子的阮玉此刻正被掌门、长老们团团围住，嘘寒问暖。大家都关心她吃得好不好，睡不睡得香，有没有做噩梦。阮玉：噩梦没有，就是天天梦到同一个美男，差点儿害了相思病。
                    我靠睡觉成了仙门团宠，你敢信？</p>
            </div>

        </div>
    </div>
    <div class="row" style="height: 280px">

        <div class="col-md-4" style="background-color: #dedef8;">
            <input type="checkbox" name="list" class="cb" value="">
            <img src="https://img-tailor.11222.cn/bcv/big/1160427672634.jpg" class="cover"/>
        </div>

        <div class="row">

            <div class="col-md-7" style="background-color: #dedef8; box-shadow:
										inset 1px 0px 0px #444, inset 0px 0px 0px #444;height: 280px">
                <br>
                <p class="title">有风向我吹来</p>
                <p><a href="/authormain?aid=76847">锦竹</a></p>
                <p>简介：一夕之间成为贫穷女？收购自家酒店的男人还是她呛过的导师？ 为了鼓励导师经营酒店，乔熙决定背水一战，打入内部，从底层开始，誓死捍卫家族企业。</p>
            </div>

        </div>
    </div>
    <div class="row" style="height: 280px">

        <div class="col-md-4" style="background-color: #dedef8;">
            <input type="checkbox" name="list" class="cb" value="">
            <img src="https://img-tailor.11222.cn/bcv/big/1179678345083.jpg" class="cover"/>
        </div>

        <div class="row">

            <div class="col-md-7" style="background-color: #dedef8;box-shadow:
										inset 1px 0px 0px #444, inset 0px 0px 0px #444;height: 280px">
                <br>
                <p class="title">流浪图书</p>
                <p><a href="/authormain?aid=4408566">悦小主</a></p>
                <p>简介：诺尔雷达大陆有一个传说，传说有一本魔法书，它能让人起死回生，永葆青春，扭转乾坤，可以满足人的一切欲望。 可是，没有人知道它是否真的存在，也没有人知道它在哪里。</p>
            </div>

        </div>
    </div>
    <div class="row" style="height: 280px">

        <div class="col-md-4" style="background-color: #dedef8;">
            <input type="checkbox" name="list" class="cb" value="">
            <img src="https://img-tailor.11222.cn/bcv/big/1166808311879.jpg" class="cover"/>
        </div>

        <div class="row">

            <div class="col-md-7" style="background-color: #dedef8;box-shadow:
										inset 1px 0px 0px #444, inset 0px 0px 0px #444;
											;height: 280px">
                <br>
                <p class="title">将军待嫁</p>

                <p><a href="/authormain?aid=15609">梦三生</a></p>
                <p>
                    简介：战功彪炳的女将军赵重衣抗旨逃婚，不幸跌落山崖……再醒来时候，成了山下东篱镇舒家的二女儿舒小满，并且捡到了一个“失忆”的美男子，美男子娇娇弱弱，楚楚可怜，赵重衣对其一见钟情，执手想看，越看越爱，“郎君，可婚否。”</p>
            </div>

        </div>
        <input type="button" value="删除选中项" name="shanchu" onclick="deleteItems()">
    </div>
</div>
<footer>
    <p>&copy; 2016 Company, Inc.</p>
</footer>
</div>
<script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"
        integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ"
        crossorigin="anonymous"></script>
<script>
    window.jQuery || document.write(
        '<script src="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.29/assets/js/vendor/jquery.min.js"><\/script>'
    )
</script>
<script src="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.29/dist/js/bootstrap.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.29/assets/js/ie10-viewport-bug-workaround.js"></script>
</body>
</html>
